package com.food.admin.service;

import com.food.admin.dto.AccountDto;
import com.food.admin.dto.AccountListDto;
import com.food.admin.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import com.food.admin.form.*;
import com.food.admin.util.MyPage;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 帅得一
 * @since 2023年06月13日
 */
public interface AccountService extends IService<Account> {

    AccountDto login(AccountLoginForm form) throws Exception;

    Account insert(AccountInsertForm form)throws Exception;

    Account updateState(AccountUpdateStateForm form)throws Exception;

    void updatePassword(AccountUpdatePasswordForm form)throws Exception;

    void updateNickname(AccountUpdateNicknameForm form)throws Exception;
    void outLogin()throws Exception;


    List<AccountListDto> listAll(AccountListPageForm form)throws Exception;

    void authorization(AccountAuthorizationForm form);
}
